/***********************************************************************
 * Module:  DeviceController.java
 * Author:  Administrator
 * Purpose: Defines the Class DeviceController
 ***********************************************************************/

package ishitong.deviceManagement.controller;

import java.util.HashMap;
import java.util.Map;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.servlet.ModelAndView;

/** @pdOid 97a308ad-1f84-42ee-ad3c-460abd4153ad */
@Controller
public class DeviceController extends ishitong.common.controller.ActionController {
   /** @pdOid 7a2c3169-a371-40a9-b91e-ae9f33d13e25 */
   private static final String DEV_SLT_DLG = "deviceManagement/device/deviceSelectDialog";
   /** @pdOid 4fc8ef4f-7538-4697-9c00-a8390737c992 */
   private static final String DEV_SLT_LST = "deviceManagement/device/deviceSelectList";
   /** @pdOid 127e90ab-128b-452a-9146-5cd4281f05b7 */
   private static final String DEV_SCH = "/deviceManagement/device/deviceSearch";
   /** @pdOid 806503c9-b804-4338-a2d4-00da07f647b1 */
   private static final String DEV_SCH_LST = "/deviceManagement/device/deviceSearchList";
   /** @pdOid 2419141f-77e0-4042-809e-4d88b97e3460 */
   private static final String DEV_VIW = "/deviceManagement/device/deviceView";
   /** @pdOid a2f9f1b8-5428-4515-a608-127a5b7dae61 */
   private static final String DEV_EDT = "/deviceManagement/device/deviceEdit";
   
   /** @param request
    * @pdOid 06228018-b0da-4d8e-9d55-5042350fbb22 */
   @RequestMapping(value = "/ajaxShowDeviceSelectDialog.do",method = RequestMethod.POST)
   public ModelAndView handleAjaxShowDeviceSelectDialog(HttpServletRequest request) {
   	try {
   		Map<String, Object> model = new HashMap<>();
   
   		return new ModelAndView(DEV_SLT_DLG, model);
   	} catch (Exception e) {
   		e.printStackTrace();
   	}
   	return null;
   }
   
   /** @param request
    * @pdOid a7a12052-517a-4003-95e4-ee45e99799fe */
   @RequestMapping(value = "/ajaxFindDeviceSelectList.do",method = RequestMethod.POST)
   public ModelAndView handleAjaxFindDeviceSelectList(HttpServletRequest request) {
   	try {
   		Map<String, Object> model = new HashMap<>();
   		return new ModelAndView(DEV_SLT_LST, model);
   	} catch (Exception e) {
   		e.printStackTrace();
   	}
   	return null;
   }
   
   /** 查询设备页面初始化
    * 
    * @param request
    * @exception Exception
    * @pdOid d958beca-86c2-4e73-a131-1599a5252504 */
   @RequestMapping(value = "/showDeviceSearch.do")
   public ModelAndView handleShowDeviceSearch(HttpServletRequest request) throws Exception {
   	try {
   		Map<String, Object> model = new HashMap<>();
   		return new ModelAndView(DEV_SCH, model);
   	} catch (Exception e) {
   		e.printStackTrace();
   	}
   	return null;
   }
   
   /** 查询设备
    * 
    * @param request
    * @pdOid 8a63b1c0-423a-4c96-8754-5c79e2aa724b */
   @RequestMapping(value = "/ajaxDeviceSearchList.do", method = RequestMethod.POST)
   public ModelAndView handleAjaxFindDeviceSearchList(HttpServletRequest request) {
   	try {
   		Map<String, Object> model = new HashMap<>();
   		return new ModelAndView(DEV_SCH_LST, model);
   	} catch (Exception e) {
   		e.printStackTrace();
   	}
   	return null;
   }
   
   /** 维护设备页面初始化
    * 
    * @param request 
    * @param response 
    * @param signalDeviceId
    * @exception Exception
    * @pdOid d203c793-f672-4c61-b45e-22cd77782ec0 */
   @RequestMapping(value = "/ajaxShowDeviceEdit.do", method = RequestMethod.POST)
   public ModelAndView handleAjaxShowDeviceEdit(HttpServletRequest request, HttpServletResponse response, String signalDeviceId) throws Exception {
   	try {
   		Map<String, Object> model = new HashMap<>();
   		return new ModelAndView(DEV_EDT, model);
   	} catch (Exception e) {
   		e.printStackTrace();
   	}
   	return null;
   }
   
   /**查看设备页面初始化
    *  
    * @param request 
    * @param response
    * @exception Exception
    * @pdOid 68610964-f0a4-479c-aada-65e41fb87d7a */
   @RequestMapping(value = "/ajaxShowDeviceView.do", method = RequestMethod.POST)
   public ModelAndView handleAjaxShowDeviceView(HttpServletRequest request, HttpServletResponse response) throws Exception {
   	try {
   		Map<String, Object> model = new HashMap<>();
   		return new ModelAndView(DEV_VIW, model);
   	} catch (Exception e) {
   		e.printStackTrace();
   	}
   	return null;
   }
   
   /** 保存设备
    * 
    * @param request 
    * @param response
    * @exception Exception
    * @pdOid 4a997cf8-5ed7-40e9-81cc-2d69a54d9a41 */
   @RequestMapping(value = "/ajaxSaveDevice.do", method = RequestMethod.POST)
   public void handleAjaxSaveDevice(HttpServletRequest request, HttpServletResponse response) throws Exception {
   	try {
   
   	} catch (Exception e) {
   		e.printStackTrace();
   	}
   }
   
   /** 删除设备
    * 
    * @param request 
    * @param signalDeviceIds 
    * @param response
    * @exception Exception
    * @pdOid 29a55cf4-9181-46e8-bc51-f8e43a94fb9b */
   @RequestMapping(value = "/ajaxDeleteDeviceByIds.do", method = RequestMethod.POST)
   public void handleAjaxDeleteDeviceByIds(HttpServletRequest request, String signalDeviceIds, HttpServletResponse response) throws Exception {
   	try {
   
   	} catch (Exception e) {
   		e.printStackTrace();
   	}
   }

}